﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SDL;

namespace BusinessLogic
{
    public static class EventExtensions
    {
        public static EventInfo getByOwnerAndName(string ownerName, string name)
        {
            var n = new EventInfo();
            n["owner_name"] = ownerName;
            n["name"] = name;
            n.Run("event.getByOwnerAndName");
            return n.getOne<EventInfo>();
        }
    }
}
